#pragma once

#include "item.h"

class CDoor;

class CLever : public CItem
{
private:
	CDoor* pOwner;
	bool bOn;

public:
	CDoor* GetOwner() const { return pOwner; }
	bool GetOn() const { return bOn; }

	void SetOwner(CDoor* val) { pOwner = val; }
	void SetOn(bool val) { bOn = val; }

	virtual void HandleCollision(const IEntity* pOther) override;
	virtual void Interacted(CPlayer* pPlayer) override;
};

